#include <iostream>
#include <cmath>

using namespace std; 

void notmain()
{
	int x;
	cin >> x;

	if(x < 10)
	{
		cout << "x is less than 10" << endl;
	}
	else if (x == 10)
	{
		cout << "x is equal to 10" << endl;
	}
	else
	{
		cout << "x is greater than 10" << endl;
	}

	int b;
	cout<< "please enter a number between 1 and 10: ";
	cin >> b;

	if(b >= 1 && b < 5)
	{
		cout << "something really dangerous" << endl;
	}
	else if( b >= 5 && b <= 10)
	{
		cout << "else, it's something" << endl;
		if( b == 7)
		{
			cout << "nested if statement executed!" << endl;
		}
	}
	else
	{
		cout << "error: please enter a number between 1 and 10" << endl;
	}

	bool x2 = true;
	if(x2)
	{
		cout << "x was true" << endl;
	}
	else
	{
		cout << "x was false" << endl;
	}

	//operators
	bool h1 = b < 5;		//less than
	bool h2 = b > 5;		//greater than
	bool h3 = b <= 5;		//less than or equal
	bool h4 = b >= 5;		//greater than or equal
	bool h5 = b == 5;		//equal
	bool h6 = !(b ==5);		//! not ( equals )
	bool h7 = true && true; // &&  AND
	bool h8 = true || true; // ||  OR

	//AND
	bool a1 = true  && true;   // true
	bool a2 = true  && false;  // false
	bool a3 = false && true;  // false
	bool a4 = false && false; // false

	//Combination
	bool combo = (true || true) && (false || true); // true

	int k = 10;
	switch(k)
	{
	case 1: 
		cout << " k is equal to 1 " << endl;
		break;
	case 2: 
		cout << " k is equal to 2 " << endl;
		break;
	}

	//ternary
	bool e = (x == 10) ? true : false;
	/*
	if( x == 10 )
	{
		e = true;
	}
	else
	{
		e = false;
	}
	*/



	system("PAUSE");
} 

void main()
{
	int k;
	cin >> k;

	switch(k)
	{
	case 1: 
		cout << " k is equal to 1 " << endl;
		break;
	case 2: 
		cout << " k is equal to 2 " << endl;
		break;
	default:
		cout << " k is something else" << endl;
		break;
	}
	system("pause");
}
